package Thread;

/**
 * Created with IntelliJ IDEA.
 * Description: 单例模式之饿汉模式练习二
 */
class Singleton1_1 {
    private static Singleton1_1 instance = new Singleton1_1();

    private Singleton1_1() {}

    public static Singleton1_1 getInstance() {
        return instance;
    }
}

public class ThreadDemo22_1 {
    public static void main(String[] args) {
        Singleton1_1 singleton1_1 = Singleton1_1.getInstance();
    }
}
